home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Columbia Kermit
/
kermit.zip
/
newsgroups
/
misc.19970326-19970626
/
000214_news@newsmaster….columbia.edu _Sun May 18 15:47:50 1997.msg
< prev
next >
Wrap
Internet Message Format
|
2020-01-01
|
3KB
Return-Path: <news@newsmaster.cc.columbia.edu>
Received: from newsmaster.cc.columbia.edu (newsmaster.cc.columbia.edu [128.59.35.30])
by watsun.cc.columbia.edu (8.8.5/8.8.5) with ESMTP id PAA02224
for <kermit.misc@watsun.cc.columbia.edu>; Sun, 18 May 1997 15:47:50 -0400 (EDT)
Received: (from news@localhost)
by newsmaster.cc.columbia.edu (8.8.5/8.8.5) id PAA29652
for kermit.misc@watsun; Sun, 18 May 1997 15:47:49 -0400 (EDT)
Path: news.columbia.edu!watsun.cc.columbia.edu!fdc
From: fdc@watsun.cc.columbia.edu (Frank da Cruz)
Newsgroups: comp.protocols.kermit.misc
Subject: Re: Script Input Error
Date: 18 May 1997 19:47:48 GMT
Organization: Columbia University
Lines: 43
Message-ID: <5lnmd4$sui$1@newsmaster.cc.columbia.edu>
References: <337DC0C3.5D6B@wwa.com> <5lkfi2$48t$1@newsmaster.cc.columbia.edu> <Oohfz4qd5rpS089yn@xmission.com> <337F4817.6DC2@wwa.com>
NNTP-Posting-Host: watsun.cc.columbia.edu
Xref: news.columbia.edu comp.protocols.kermit.misc:7052
In article <337F4817.6DC2@wwa.com>, Jim Jacobus <jjacobus@wwa.com> wrote:
: Jim Janney wrote:
: > In article <337DC0C3.5D6B@wwa.com>, Jim Jacobus <jjacobus@wwa.com> wrote:
: > > I'm trying to write a telnet script using VMS C-kermit 6.0.192 to
: > > connect to ...
: > > I can't get a response back from my script. I have an
: > > "input 5 login:" which should work, but I always get an error from
: > > my VMS Kermit:
: > > ? Can't condition line for INPUT
: > ...
: > When I changed this to
: >
: > set network tcp/ip
: > set host bix.com
: > input 5 login
: >
: > it started to work as I had intended.
:
: ohmygosh! That worked. Thanks. -- Jim
:
Right. TELNET xxx means (roughly) "set network tcp/ip, set host xxx, if
success connect". In other words, TELNET at the Kermit prompt does roughly
what "telnet" at the system prompt would do.
But scripts do not execute while in CONNECT mode. CONNECT (or TELNET) is
just another command in the script; the next command is executed after
Kermit reterns from CONNECT mode. Of course this is documented in the
manual, which also shows numerous examples of how to write scripts for
Telnet connections, using SET HOST.
If your script looked like this:
telnet blah
input 10 login:
then probably what happened is you got the interactive terminal screen,
saw the login prompt, and then logged out or disconnected. At this point
Kermit returns to its command processor and executes the INPUT command,
but at this point the connection has been closed, and hence the message:
?Can't condition line for INPUT
- Frank